package com.cyandpos.pad.posdata;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2020/2/catering_main_open_table.
 */

public class Goods implements Serializable {
    private String inputCode;//	输入码
    private String code;//	商品码
    private String barcode;//	商品条码
    private String name;//	名称
    private String id;//	商品id
    private String unit;//	单位
    private String price;//	单价
    private String saleCount;//	销售数量
    private String saleMoney;//	销售金额
    private String discount;//	折扣金额
    private String preferentialMoney;//	优惠金额
    private String classType;//	商品类型
    private String bulkType;//	散称类型
    private String imageUrl;//	图片URL
    private String goodsGuid;//	唯一标识
    private String ticktInx;//	小票号
    private String ticktGoodsInx;//	当前小票下序号
    private String inx;//	序号
    private String deptId; //部门id
    private String deptCode; //部门code
    private String personId;//营业员ID
    private boolean packaged; //是否打包商品
    private String refundCount;  //退货数量
    private String maxSaleCount;  //库存数量
    private String canSaleCount;  //库存数量
    private String hasedRefundCount;//已退货数量
    private String stamp;//是否印花
    private String tasteId;//口味
    private String desc;//备注
    private List<CyFood.Flavor> flavorList;//口味

    public String getStamp() {
        return stamp;
    }

    public void setStamp(String stamp) {
        this.stamp = stamp;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public List<CyFood.Flavor> getFlavorList() {
        return flavorList;
    }

    public void setFlavorList(List<CyFood.Flavor> flavorList) {
        this.flavorList = flavorList;
    }

    public String getTasteId() {
        return tasteId;
    }

    public void setTasteId(String tasteId) {
        this.tasteId = tasteId;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getCanSaleCount() {
        return canSaleCount;
    }

    public void setCanSaleCount(String canSaleCount) {
        this.canSaleCount = canSaleCount;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getHasedRefundCount() {
        return hasedRefundCount;
    }

    public void setHasedRefundCount(String hasedRefundCount) {
        this.hasedRefundCount = hasedRefundCount;
    }

    public String getInputCode() {
        return inputCode;
    }

    public void setInputCode(String inputCode) {
        this.inputCode = inputCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getBarCode() {
        return barcode;
    }

    public void setBarCode(String barCode) {
        this.barcode = barCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSaleCount() {
        return saleCount;
    }

    public void setSaleCount(String saleCount) {
        this.saleCount = saleCount;
    }

    public String getSaleMoney() {
        return saleMoney;
    }

    public void setSaleMoney(String saleMoney) {
        this.saleMoney = saleMoney;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public String getPreferentialMoney() {
        return preferentialMoney;
    }

    public void setPreferentialMoney(String preferentialMoney) {
        this.preferentialMoney = preferentialMoney;
    }

    public String getClassType() {
        return classType;
    }

    public void setClassType(String classType) {
        this.classType = classType;
    }

    public String getBulkType() {
        return bulkType;
    }

    public void setBulkType(String bulkType) {
        this.bulkType = bulkType;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getGoodsGuid() {
        return goodsGuid;
    }

    public void setGoodsGuid(String goodsGuid) {
        this.goodsGuid = goodsGuid;
    }

    public String getTicktInx() {
        return ticktInx;
    }

    public void setTicktInx(String ticktInx) {
        this.ticktInx = ticktInx;
    }

    public String getTicktGoodsInx() {
        return ticktGoodsInx;
    }

    public void setTicktGoodsInx(String ticktGoodsInx) {
        this.ticktGoodsInx = ticktGoodsInx;
    }

    public String getInx() {
        return inx;
    }

    public void setInx(String inx) {
        this.inx = inx;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public boolean isPackaged() {
        return packaged;
    }

    public void setPackaged(boolean packaged) {
        this.packaged = packaged;
    }

    public String getRefundCount() {
        return refundCount;
    }

    public void setRefundCount(String refundCount) {
        this.refundCount = refundCount;
    }

    public String getMaxSaleCount() {
        return maxSaleCount;
    }

    public void setMaxSaleCount(String maxSaleCount) {
        this.maxSaleCount = maxSaleCount;
    }

    public Goods goodClone() {
        Goods g = new Goods();
        g.setInputCode(inputCode);
        g.setCode(code);
        g.setBarCode(barcode);
        g.setName(name);
        g.setId(id);
        g.setUnit(unit);
        g.setPrice(price);
        g.setSaleCount(saleCount);
        g.setSaleMoney(saleMoney);
        g.setDiscount(discount);
        g.setPreferentialMoney(preferentialMoney);
        g.setClassType(classType);
        g.setBulkType(bulkType);
        g.setImageUrl(imageUrl);
        g.setGoodsGuid(goodsGuid);
        g.setTicktInx(ticktInx);
        g.setTicktGoodsInx(ticktGoodsInx);
        g.setInx(inx);
        g.setDeptId(deptId);
        g.setDeptCode(deptCode);
        g.setPackaged(packaged);
        g.setRefundCount(refundCount);
        g.setMaxSaleCount(maxSaleCount);
        g.setHasedRefundCount(hasedRefundCount);
        g.setStamp(stamp);
        g.setTasteId(tasteId);
        g.setDesc(desc);
        g.setFlavorList(flavorList);
        return g;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "inputCode='" + inputCode + '\'' +
                ", code='" + code + '\'' +
                ", barcode='" + barcode + '\'' +
                ", name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", unit='" + unit + '\'' +
                ", price='" + price + '\'' +
                ", saleCount='" + saleCount + '\'' +
                ", saleMoney='" + saleMoney + '\'' +
                ", discount='" + discount + '\'' +
                ", preferentialMoney='" + preferentialMoney + '\'' +
                ", classType='" + classType + '\'' +
                ", bulkType='" + bulkType + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", goodsGuid='" + goodsGuid + '\'' +
                ", ticktInx='" + ticktInx + '\'' +
                ", ticktGoodsInx='" + ticktGoodsInx + '\'' +
                ", inx='" + inx + '\'' +
                ", deptId='" + deptId + '\'' +
                ", deptCode='" + deptCode + '\'' +
                ", packaged=" + packaged +
                ", refundCount='" + refundCount + '\'' +
                ", maxSaleCount='" + maxSaleCount + '\'' +
                ", hasedRefundCount='" + hasedRefundCount + '\'' +
                '}';
    }




}
